package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.dictionary.PMDictionariesTransferer;
import com.fis.hlo.pm.dictionary.PMDictionariesTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class DictionariesTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://dictionary.pm.hlo.fis.com/", "PMDictionariesTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_DICTIONARIES_PORT_KEY);

	public static PMDictionariesTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMDictionariesTransfererService ss = new PMDictionariesTransfererService(url, SERVICE_NAME);
		PMDictionariesTransferer port = ss.getPMDictionariesTransfererPort();
		return port;
	}
}
